package com.jian.springbootdemosdk;

import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

@Configuration
public class JApiFunction {
    @Resource
    private JApiClient client;

    JApiFunction(){
        JApiClient.invoke.put("http://localhost:8111/api/demo/name", info -> client.getName(info));
        JApiClient.invoke.put("http://localhost:8111/api/demo/time", info -> client.getTime(info));
    }
}
